<?php
  function GetSource($url)
  {
		$recarr=array();
		$handle=fopen($url,'r');
		if($handle)
		{
			while(!feof($handle))
			{
				$line=fgets($handle);	
				$count=0;
				str_replace('ss02',"",$line,$count);
				if($count>0)
				{
					$recarr[]=$line;
				}
			}	
			$rot = array();
			$ptr = "/ref=\"nofollow\">(.*)<\/a>/";
			preg_match_all($ptr,implode($recarr),$str,PREG_SET_ORDER);
			if(isset($str))
			{
			     //print_r($str);
				$rot[]=$str[0][1];
				//print_r($rot);
			}
		}
		else
				{
					$rot[]=0;
				}
				return $rot;
	}
	
	?>